package com.demo.morning;

/**
 * @ClassName 类的练习
 * @Description TODO
 * @Author tianqinglong
 * @Date 9:52 2022/7/5
 * @Version 1.0
 **/
public class 类的练习 {
    public static void main(String[] args) {
//        System.out.println(1);
//        System.out.println(1);
        Person person = new Person();
        person.age=18;
        person.name="张三";
        person.sex="男";
        person.school="泉州职业技术大学";
        person.show();
    }
}
class Person{
     int age;
     String sex;
     String name;
     String school;
     void show(){
         System.out.println(age+"-"+sex+"-"+name+"-"+school);
    }


}
